
    <script type="text/javascript">
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
        	['Status','Anzahl'],
			<% data=getPieChartData
			data.each_pair do |key, value| %>
				['<%= key %>',<%= value %>],
			<% end %>
        ]);

        var options = {
          title: 'UserStories'
        };

        var chart = new google.visualization.PieChart(document.getElementById('sprintChart'));
        chart.draw(data, options);
      }
    </script>